<template>
	<view class="contain">
		<uni-icons size="25" type="arrowleft" class="el-icon-back" @click="back()"></uni-icons>
	</view>
</template>

<script>
	export default {
		name: "back",
		data() {
			return {

			};
		},
		methods: {
			//返回上一级页面
			back() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss">
	.contain {
		position: relative;
	}

	.el-icon-back {
		position: absolute;
		left: 10rpx;
		top: 20rpx;
	}
</style>
